const Mock = require('better-mock/dist/mock.mp.js')

Mock.mock('api/test', {
	'list|1-10': [{
		'id|+1': 1
	}]
})

Mock.mock('getSwiper', [
	'https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fimg.jj20.com%2Fup%2Fallimg%2F1115%2F092221102018%2F210922102018-8-1200.jpg&refer=http%3A%2F%2Fimg.jj20.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1663945874&t=973cbc9cb63d063ebe56b15b6345584e',
	'https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fup.enterdesk.com%2Fedpic_source%2Fe5%2F42%2Ff0%2Fe542f0b7969a01e037138624b082174d.jpg&refer=http%3A%2F%2Fup.enterdesk.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1663945874&t=d11d6ebe6a4961663a64e5a506985a59',
	'https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fimg.jj20.com%2Fup%2Fallimg%2F1114%2F042421135351%2F210424135351-1-1200.jpg&refer=http%3A%2F%2Fimg.jj20.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1663945874&t=728bc1d62c14b4ef6a42f057d90dd377'
])

Mock.mock('getList', [{
	"id": 1,
	"title": "男子欠钱不还,12只猫被拍卖:蓝金幼猫拍出4080元",
	"imgs": [
		"https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fc-ssl.duitang.com%2Fuploads%2Fitem%2F201902%2F23%2F20190223231014_csxbp.thumb.400_0.jpg&refer=http%3A%2F%2Fc-ssl.duitang.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1664292620&t=69838afda9d93e54cd66329c4b1ffe08",
		"https://inews.gtimg.com/newsapp_bt/0/15202462836/1000",
		"https://inews.gtimg.com/newsapp_bt/0/15202534591/1000"
	],
	"content": "也许是人到中年了，忙的事业家庭不可以交。",
	"category": "意林",
	"pl": 35,
	"plList": []
}, {
	"id": 2,
	"title": "中国网络文明大会这些亮点别错过",
	"imgs": [
		"https://inews.gtimg.com/newsapp_bt/0/15202534600/1000",
		"https://inews.gtimg.com/newsapp_bt/0/15202518497/1000",
		"https://inews.gtimg.com/newsapp_bt/0/15202518530/1000"
	],
	"content": "在尽可能的情况下,多行注释会被保留在输出的CSS中,而单行注释会被删除。",
	"category": "青年文摘",
	"pl": 48,
	"plList": []
}, {
	"id": 3,
	"title": "夫妇卖芹菜后遭罚6.6万 当地被督查热",
	"imgs": [
		"https://inews.gtimg.com/newsapp_bt/0/15199908761/1000",
		"https://inews.gtimg.com/newsapp_bt/0/15202475172/1000",
		"https://inews.gtimg.com/newsapp_bt/0/15202475167/1000"
	],
	"content": "陕西榆林的罗某夫妇因售卖5斤检查不合格的芹菜，被当地市场监管部门处罚6.6万。目前当地因处罚过当被督查。",
	"category": "青年文摘",
	"pl": 30,
	"plList": []
}, {
	"id": 4,
	"title": "通缉犯抓捕赏金仅4元？平台回应热",
	"imgs": [
		"https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fc-ssl.duitang.com%2Fuploads%2Fitem%2F201902%2F23%2F20190223231014_csxbp.thumb.400_0.jpg&refer=http%3A%2F%2Fc-ssl.duitang.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1664292620&t=69838afda9d93e54cd66329c4b1ffe08",
		"https://inews.gtimg.com/newsapp_bt/0/15202462836/1000",
		"https://inews.gtimg.com/newsapp_bt/0/15202534591/1000"
	],
	"content": "节电专家建议城里人少跳广场舞热",
	"category": "意林",
	"pl": 35,
	"plList": []
}, {
	"id": 5,
	"title": "日本陆上自卫队与美国陆军联合军演",
	"imgs": [
		"https://inews.gtimg.com/newsapp_bt/0/15202534600/1000",
		"https://inews.gtimg.com/newsapp_bt/0/15202518497/1000",
		"https://inews.gtimg.com/newsapp_bt/0/15202518530/1000"
	],
	"content": "在尽可能的情况下,多行注释会被保留在输出的CSS中,而单行注释会被删除。",
	"category": "青年文摘",
	"pl": 48,
	"plList": []
}, {
	"id": 6,
	"title": "10架次解放军战机穿越“海峡中线”",
	"imgs": [
		"https://inews.gtimg.com/newsapp_bt/0/15199908761/1000",
		"https://inews.gtimg.com/newsapp_bt/0/15202475172/1000",
		"https://inews.gtimg.com/newsapp_bt/0/15202475167/1000"
	],
	"content": "陕西榆林的罗某夫妇因售卖5斤检查不合格的芹菜，被当地市场监管部门处罚6.6万。目前当地因处罚过当被督查。",
	"category": "青年文摘",
	"pl": 30,
	"plList": []
}])

Mock.mock('getAllBrand', {
	"count": 10,
	"data": [{
			"brandId": 14,
			"brandName": "本田",
			"attNum": 0,
			"brandlogo": "//m1.autoimg.cn/newsdfs/g8/M05/78/7D/100x100_0_q30_autohomecar__ChsEwGDymG6ATewSAAAMXREb5AQ823.png",
			"img": null
		},
		{
			"brandId": 3,
			"brandName": "丰田",
			"attNum": 0,
			"brandlogo": "//m1.autoimg.cn/newsdfs/g28/M04/C5/46/100x100_0_q30_autohomecar__ChwFkmGgkM-ADLF_AAA7SzrQUQw971.png",
			"img": null
		},
		{
			"brandId": 36,
			"brandName": "奔驰",
			"attNum": 0,
			"brandlogo": "//m1.autoimg.cn/newsdfs/g26/M00/AF/E7/100x100_0_q30_autohomecar__wKgHHVs9u6mAaY6mAAA2M840O5c440.png",
			"img": null
		},
		{
			"brandId": 15,
			"brandName": "宝马",
			"attNum": 0,
			"brandlogo": "//m1.autoimg.cn/newsdfs/g1/M08/18/4F/100x100_0_q30_autohomecar__ChsEmV5fMd6AZK-bAAAg8taR7xI407.png",
			"img": null
		},
		{
			"brandId": 1,
			"brandName": "大众",
			"attNum": 0,
			"brandlogo": "//m1.autoimg.cn/newsdfs/g24/M07/57/D8/100x100_0_q30_autohomecar__ChsEeV26zOKAATwCAAAMlhPv54M195.png",
			"img": null
		},
		{
			"brandId": 75,
			"brandName": "比亚迪",
			"attNum": 0,
			"brandlogo": "//m1.autoimg.cn/newsdfs/g29/M0B/50/C2/100x100_0_q30_autohomecar__Chxkm2Hem-6AJbRTAAALAAXnCgc902.png",
			"img": null
		},
		{
			"brandId": 33,
			"brandName": "奥迪",
			"attNum": 0,
			"brandlogo": "//m1.autoimg.cn/newsdfs/g26/M0B/AE/B3/100x100_0_q30_autohomecar__wKgHEVs9u5WAV441AAAKdxZGE4U148.png",
			"img": null
		},
		{
			"brandId": 8,
			"brandName": "福特",
			"attNum": 0,
			"brandlogo": "//m1.autoimg.cn/newsdfs/g27/M01/E7/3D/100x100_0_q30_autohomecar__ChwFkWGVuYCAWgzzAAA86IJMQok255.png",
			"img": null
		},
		{
			"brandId": 25,
			"brandName": "吉利汽车",
			"attNum": 0,
			"brandlogo": "//m1.autoimg.cn/newsdfs/g15/M06/A0/71/100x100_0_q30_autohomecar__ChwEoWDylfGAOuKfAAA5bSitpkk273.png",
			"img": null
		},
		{
			"brandId": 82,
			"brandName": "广汽传祺",
			"attNum": 0,
			"brandlogo": "//m1.autoimg.cn/newsdfs/g27/M09/46/90/100x100_0_q30_autohomecar__ChxkmWMNuqWAG1FpAAAiDp2lNeM601.png",
			"img": null
		}
	]
})

Mock.mock('getAllSeries', {
	"data": [{
		"id": 10,
		"brand_id": 10,
		"series_id": 1,
		"image": "https://m1.autoimg.cn/newsdfs/g7/M08/30/91/180x138_0_c42_autohomecar__ChwEmWFQJJyAEnUbAAguYPmxiXo052.png.webp",
		"name": "奥迪R8"
	}, {
		"id": 11,
		"brand_id": 10,
		"series_id": 1,
		"image": "https://m1.autoimg.cn/newsdfs/g25/M00/03/EA/180x138_0_c42_autohomecar__ChxkqWIURVeAN8nkAAcEu2xVP_A031.png.webp",
		"name": "奥迪RS3"
	}, {
		"id": 12,
		"brand_id": 10,
		"series_id": 1,
		"image": "https://m1.autoimg.cn/newsdfs/g30/M0B/09/9C/180x138_0_c42_autohomecar__ChsFJ2L8yICAdw6RAAixN6LWeLk849.png.webp",
		"name": "奥迪TTS"
	}, {
		"id": 13,
		"brand_id": 10,
		"series_id": 1,
		"image": "https://m1.autoimg.cn/newsdfs/g27/M04/E1/B4/180x138_0_c42_autohomecar__ChxkmWLrMY-AS6aWAAfmdU71qeo540.png.webp",
		"name": "奥迪A6L"
	}, {
		"id": 14,
		"brand_id": 10,
		"series_id": 1,
		"image": "https://m1.autoimg.cn/newsdfs/g24/M07/BF/A5/180x138_0_c42_autohomecar__ChsEl16BXKSAFuONAAkKdw4QUKI580.png.webp",
		"name": "奥迪A4L"
	}, {
		"id": 15,
		"brand_id": 10,
		"series_id": 1,
		"image": "https://m1.autoimg.cn/newsdfs/g24/M08/91/FE/180x138_0_c42_autohomecar__Chtk3WCjUUiAWOSgAAxCg-Cn6vI964.png.webp",
		"name": "奥迪Q5L"
	}, {
		"id": 16,
		"brand_id": 10,
		"series_id": 1,
		"image": "https://m1.autoimg.cn/newsdfs/g27/M04/E1/B4/180x138_0_c42_autohomecar__ChxkmWLrMY-AS6aWAAfmdU71qeo540.png.webp",
		"name": "奥迪A3L"
	}, {
		"id": 17,
		"brand_id": 10,
		"series_id": 1,
		"image": "https://m1.autoimg.cn/newsdfs/g24/M07/BF/A5/180x138_0_c42_autohomecar__ChsEl16BXKSAFuONAAkKdw4QUKI580.png.webp",
		"name": "奥迪Q3"
	}, {
		"id": 18,
		"brand_id": 10,
		"series_id": 1,
		"image": "https://m1.autoimg.cn/newsdfs/g24/M08/91/FE/180x138_0_c42_autohomecar__Chtk3WCjUUiAWOSgAAxCg-Cn6vI964.png.webp",
		"name": "奥迪Q2L"
	}, {
		"id": 19,
		"brand_id": 10,
		"series_id": 1,
		"image": "https://m1.autoimg.cn/newsdfs/g27/M04/E1/B4/180x138_0_c42_autohomecar__ChxkmWLrMY-AS6aWAAfmdU71qeo540.png.webp",
		"name": "奥迪A8"
	}, {
		"id": 20,
		"brand_id": 10,
		"series_id": 1,
		"image": "https://m1.autoimg.cn/newsdfs/g24/M07/BF/A5/180x138_0_c42_autohomecar__ChsEl16BXKSAFuONAAkKdw4QUKI580.png.webp",
		"name": "奥迪Q7"
	}, {
		"id": 21,
		"brand_id": 10,
		"series_id": 1,
		"image": "https://m1.autoimg.cn/newsdfs/g24/M08/91/FE/180x138_0_c42_autohomecar__Chtk3WCjUUiAWOSgAAxCg-Cn6vI964.png.webp",
		"name": "奥迪Q8"
	}]
})



Mock.mock('getAllCar', {
	"count": 101,
	"data": [{
		"id": 108,
		"name": "2008款 45 TFSI 臻选型",
		"seats": 4,
		"bianSuQi": "自动",
		"year": "2008"
	}, {
		"id": 109,
		"name": "2009款 45 TFSI 臻选型",
		"seats": 5,
		"bianSuQi": "手动",
		"year": "2009"
	}, {
		"id": 110,
		"name": "2010款 45 TFSI 臻选型",
		"seats": 6,
		"bianSuQi": "自动",
		"year": "2010"
	}, {
		"id": 111,
		"name": "2011款 45 TFSI 臻选型",
		"seats": 4,
		"bianSuQi": "自动",
		"year": "2011"
	}, {
		"id": 112,
		"name": "2012款 45 TFSI 臻选型",
		"seats": 5,
		"bianSuQi": "手动",
		"year": "2012"
	}, {
		"id": 113,
		"name": "2013款 45 TFSI 臻选型",
		"seats": 6,
		"bianSuQi": "自动",
		"year": "2013"
	}, {
		"id": 114,
		"name": "2014款 45 TFSI 臻选型",
		"seats": 4,
		"bianSuQi": "手动",
		"year": "2014"
	}, {
		"id": 115,
		"name": "2015款 45 TFSI 臻选型",
		"seats": 5,
		"bianSuQi": "自动",
		"year": "2015"
	}, {
		"id": 116,
		"name": "2016款 45 TFSI 臻选型",
		"seats": 6,
		"bianSuQi": "自动",
		"year": "2016"
	}, {
		"id": 117,
		"name": "2017款 45 TFSI 臻选型",
		"seats": 4,
		"bianSuQi": "手动",
		"year": "2017"
	}, {
		"id": 118,
		"name": "2018款 45 TFSI 臻选型",
		"seats": 5,
		"bianSuQi": "自动",
		"year": "2018"
	}, {
		"id": 119,
		"name": "2019款 45 TFSI 臻选型",
		"seats": 6,
		"bianSuQi": "手动",
		"year": "2019"
	}, {
		"id": 120,
		"name": "2020款 45 TFSI 臻选型",
		"seats": 4,
		"bianSuQi": "自动",
		"year": "2020"
	}, {
		"id": 121,
		"name": "2021款 45 TFSI 臻选型",
		"seats": 5,
		"bianSuQi": "手动",
		"year": "2021"
	}, {
		"id": 122,
		"name": "2022款 45 TFSI 臻选型",
		"seats": 6,
		"bianSuQi": "自动",
		"year": "2022"
	}, {
		"id": 123,
		"name": "2023款 45 TFSI 臻选型",
		"seats": 4,
		"bianSuQi": "自动",
		"year": "2023"
	}, {
		"id": 124,
		"name": "2024款 45 TFSI 臻选型",
		"seats": 5,
		"bianSuQi": "自动",
		"year": "2024"
	}, {
		"id": 125,
		"name": "2025款 45 TFSI 臻选型",
		"seats": 6,
		"bianSuQi": "自动",
		"year": "2025"
	}]
})


Mock.mock('getCarById', {
	"id": 125,
	"name": "2025款 45 TFSI 臻选型",
	"seats": 6,
	"bianSuQi": "自动",
	"year": "2025"
})

Mock.mock('getCarImg', {
	"imgs": [
		'https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fimg.jj20.com%2Fup%2Fallimg%2F1115%2F092221102018%2F210922102018-8-1200.jpg&refer=http%3A%2F%2Fimg.jj20.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1663945874&t=973cbc9cb63d063ebe56b15b6345584e',
		'https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fup.enterdesk.com%2Fedpic_source%2Fe5%2F42%2Ff0%2Fe542f0b7969a01e037138624b082174d.jpg&refer=http%3A%2F%2Fup.enterdesk.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1663945874&t=d11d6ebe6a4961663a64e5a506985a59',
		'https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fimg.jj20.com%2Fup%2Fallimg%2F1114%2F042421135351%2F210424135351-1-1200.jpg&refer=http%3A%2F%2Fimg.jj20.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1663945874&t=728bc1d62c14b4ef6a42f057d90dd377'
	],
	"price": 128
})

Mock.mock('login', 'post', {
	"data": {
		"id": 123,
		"username": "admin",
		"nickname": "小张",
		"phone": "13612345678",
		"img": "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fup.enterdesk.com%2Fedpic_source%2Fe5%2F42%2Ff0%2Fe542f0b7969a01e037138624b082174d.jpg&refer=http%3A%2F%2Fup.enterdesk.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1663945874&t=d11d6ebe6a4961663a64e5a506985a59"
	},
	"token": "e10adc3949ba59abbe56e057f20f883e"
})

Mock.mock('http://localhost:8080/uploadUserImg', 'post', {
	"data": {
		"id": 123,
		"username": "admin",
		"nickname": "小张",
		"phone": "13612345678",
		"img": ""
	},
	"token": "e10adc3949ba59abbe56e057f20f883e"
})

Mock.mock('register', 'post', {
	"errMsg": "uploadFile:ok",
	"statusCode": 200,
	"data": "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fup.enterdesk.com%2Fedpic_source%2Fe5%2F42%2Ff0%2Fe542f0b7969a01e037138624b082174d.jpg&refer=http%3A%2F%2Fup.enterdesk.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1663945874&t=d11d6ebe6a4961663a64e5a506985a59"
})

Mock.mock('getDetail', {
	"id": 6,
	"title": "10架次解放军战机穿越“海峡中线”",
	"imgs": [
		"https://inews.gtimg.com/newsapp_bt/0/15199908761/1000",
		"https://inews.gtimg.com/newsapp_bt/0/15202475172/1000",
		"https://inews.gtimg.com/newsapp_bt/0/15202475167/1000"
	],
	"content": "据中国载人航天工程办公室消息，为满足载人航天工程后续飞行任务需要，我国第四批预备航天员选拔工作已于近期启动。本次共选拔12至14名预备航天员，包括航天驾驶员7至8名，航天飞行工程师和载荷专家共5至6名，其中，载荷专家2名左右。航天驾驶员在陆海空三军现役飞行员中选拔，航天飞行工程师在从事航空航天工程及相关领域专业的科研和工程技术人员中选拔，载荷专家在从事空间科学研究及应用相关领域的科研人员中选拔。此次预备航天员选拔，由中国载人航天工程办公室统一组织实施，预计1年半左右时间完成，并首次在港澳地区选拔载荷专家。",
	"category": "青年文摘",
	"pl": 30,
	"plList": []
})

Mock.mock('addOrder', 'post', {
	"statusCode": 200,
	"data": {
		"id": "100"
	}
})

Mock.mock('delOrder', 'post', {
	"statusCode": 200,
	"data": {
		"id": "100"
	}
})

Mock.mock('getAllOrder', {
	"count": 20,
	"data": [
		{
			"id": 1,
			"user_id": 1,
			"carId": 1232,
			"create_time": 1664853197882
		},
		{
			"id": 2,
			"user_id": 1,
			"carId": 1232,
			"create_time": 1664853261683
		},{
			"id": 3,
			"user_id": 1,
			"carId": 1232,
			"create_time": 1664854197882
		},{
			"id": 4,
			"user_id": 1,
			"carId": 1232,
			"create_time": 1664855197882
		},{
			"id": 5,
			"user_id": 1,
			"carId": 1232,
			"create_time": 1664856197882
		},{
			"id": 6,
			"user_id": 1,
			"carId": 1232,
			"create_time": 1664857197882
		},{
			"id": 7,
			"user_id": 1,
			"carId": 1232,
			"create_time": 1664858197882
		},{
			"id": 8,
			"user_id": 1,
			"carId": 1232,
			"create_time": 1664859197882
		},{
			"id": 9,
			"user_id": 1,
			"carId": 1232,
			"create_time": 1664860197882
		},{
			"id": 10,
			"user_id": 1,
			"carId": 1232,
			"create_time": 1664861197882
		},{
			"id": 11,
			"user_id": 1,
			"carId": 1232,
			"create_time": 1664862197882
		}
	]
})
